package com.endoc.btmodule;

import android.bluetooth.BluetoothGattCharacteristic;

import cn.com.heaton.blelibrary.ble.model.BleDevice;

/**
 * 蓝牙操作回调接口
 */
public interface IBleCallBack {

    /**
     * @param device 设备
     * @param rssi  信号
     * @param scanRecord  搜索
     */
    public abstract  void onLeScan(BleDevice device, int rssi, byte[] scanRecord);
    public abstract void onConnectionChanged(BleDevice device);
    public abstract void onReady(BleDevice device);
    public abstract void receiveData(BleDevice device, BluetoothGattCharacteristic characteristic);
    public abstract void onWriteSuccess(BleDevice device, BluetoothGattCharacteristic characteristic);
    public abstract void onWriteFailed(BleDevice device, int failedCode);
    public abstract void onMtuChanged(BleDevice device, int mtu, int status);
}
